package com.hy.service.controller;

import com.hy.service.OrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("orderService")
public class OrderServiceController implements OrderService {

    @Resource
    private OrderService orderService;

    @GetMapping("getOrderMessage")
    @Override
    public Map<String, Object> getOrderMessage(Integer id) {
        return orderService.getOrderMessage(id);
    }
}
